<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html>

	<!-- Mirrored from www.zi-han.net/theme/hplus/table_bootstrap.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:03 GMT -->

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="favicon.ico">
		<link href="/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
		<link href="/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
		<link href="/admin/css/animate.min.css" rel="stylesheet">
		<link href="/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
		<link href="/admin/frame/summernote/css/summernote.css" rel="stylesheet">
		<link href="/admin/frame/summernote/css/summernote-bs3.css" rel="stylesheet">
		<style>
			.modal.in{
				z-index: 99999 !important;
			}
			.modal-backdrop.in{
				display: none;
			}
		</style>
	</head>
	<body class="gray-bg">
		<div class="wrapper wrapper-content animated fadeInRight">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5> 
					<ol class="breadcrumb br-0">
						<li><a href="javascript:void(0)">系统管理</a></li>
						<li class="active">注册协议</li>
					</ol>
					</h5>
					<div class="ibox-tools">
						<a class="collapse-link">
							<i class="fa fa-chevron-up"></i>
						</a>
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    <i class="fa fa-wrench"></i>
                                </a>
                                <ul class="dropdown-menu dropdown-user">
                                    <li>
                                        <a href="javascript:edit()">编辑</a>
                                    </li>
                                    <li>
                                        <a href="javascript:save()">保存</a>
                                    </li>
                                </ul>
						<a class="close-link">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div id="edit" class="ibox-content">
					<div class="row">
						<div class="col-sm-12 ">
							<div class="click2edit wrapper" id="click2edit">
								${protocol}
							</div>

							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		</div>
		<script src="/admin/frame/jquery/jquery-1.9.1.min.js"></script>
		<script src="/admin/frame/bootstrap/js/bootstrap.min.js"></script>
		<script src="/admin/js/content.min.js?v=1.0.0"></script>
		<script src="/admin/js/myPlug.js"></script>
		<script src="/admin/frame/summernote/js/summernote.min.js"></script>
		<script src="/admin/frame/summernote/js/summernote-zh-CN.js"></script>
		<script src="/admin/frame/layer/layer.js"></script>
		<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
	</body>
		<script>
            $(document).ready(function() {
                $(".summernote").summernote({
                    lang: "zh-CN"
                })
            });
            var edit = function() {
                $("#edit").addClass("no-padding");
                $(".click2edit").summernote({
                    lang: "zh-CN",
                    focus: true
                })
            };
            var save = function() {
                $("#edit").removeClass("no-padding");
                var aHTML = $(".click2edit").code();
                $(".click2edit").destroy()
				var str=$("#click2edit").html();
                var data={};
                data.protocol=str;
               	var aj=$.ajax({
					url:'/Admin/Protocol/saveProtocol',
					dataType:"json",
					data:data,
					type:'post',
					error:function () {
						layer.msg("请求失败")
                    },success:function(msg){
						layer.msg(msg.msg);
					}
				})
            };
		</script>
</html>
